package com.ruoyi.pos.service.impl;

import com.ruoyi.pos.domain.PosDingdanInfo;
import com.ruoyi.pos.mapper.PosDingdanInfoMapper;
import com.ruoyi.pos.service.IPosDingdanInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PosDingdanInfoServiceImpl implements IPosDingdanInfoService {
    @Autowired
    private PosDingdanInfoMapper posDingdanInfoMapper;

    @Override
    public int insertPosDingdanInfo(PosDingdanInfo posDingdanInfo) {
        return posDingdanInfoMapper.insertPosDingdanInfo(posDingdanInfo);
    }

    @Override
    public int updatePosDingdanInfo(PosDingdanInfo posDingdanInfo) {
        return posDingdanInfoMapper.updatePosDingdanInfo(posDingdanInfo);
    }

    @Override
    public PosDingdanInfo selectPosDingdanInfoById(Integer id) {
        return posDingdanInfoMapper.selectPosDingdanInfoById(id);
    }

    @Override
    public List<PosDingdanInfo> selectPosDingdanInfoList(PosDingdanInfo posDingdanInfo) {
        return posDingdanInfoMapper.selectPosDingdanInfoList(posDingdanInfo);
    }
}
